import API from '../api/index'
// import Vue from 'vue'
import axios from 'axios'
import Qs from 'qs';

/**
 *响应数据拦截
 */
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
axios.defaults.headers = {
  'Content-type': 'application/x-www-form-urlencoded'
}

// axios.interceptors.request.use(
//   config => {
//     // if (store.state.token) {  // 判断是否存在token，如果存在的话，则每个http header都加上token
//     //     config.headers.Authorization = `token ${store.state.token}`;
//     // }
//     config.headers.lang = "zh_CN"
//     return config;
//   },
//   err => {
//     return Promise.reject(err);
//   });
axios.interceptors.response.use(function (response) {
  let message = ''
  switch (response.data.code) {
    // case '9112': //请求成功，但服务器返回逻辑错误
    //   message = "登录失效，请重新登录";
    //   localStorage.removeItem("token");
    //   localStorage.removeItem("userObj");
    //   break

    // case 1003:
    //   message = response.data.msg
    //   break

    // case 1004:
    //   message = response.data.msg
    //   break
  }

  if (message) {
    // Vue.$toast(message) //全局的错误提示
    return Promise.reject(message);
  }

  return Promise.resolve(response.data)
}, function (err) {

  if (err && err.response) {

    err.message = '对不起，服务器出现错误，状态码:' + err.response.status

  } else {
    err.message = '连接服务器失败'
  }
  return Promise.reject(err);
})
//获取用户信息
const getUser = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getuser'], {
        headers: {
          'token': options.token,
        },
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
//获取配置项
const getConfig = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getConfig'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
//登录
const login = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['login'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
//注册
const register = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['register'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
//修改密码
const resetPwd = (token, options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['resetPwd'], Qs.stringify(options), {
        headers: {
          'token': token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取注册短信验证码
const registerVCode = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['registerVCode'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取注册邮箱验证码
const registerECode = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['registerECode'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取重置密码短信验证码
const newPwdSmsCode = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['newPwdSmsCode'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取重置密码邮箱验证码
const newPwdEmailCode = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['newPwdEmailCode'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
//修改密码
const resetNewPwd = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['resetNewPwd'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
const certify = (options) => { //实名认证
  return new Promise((resolve, reject) => {
    axios.post(API['certify'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
//获取够币记录
const getTxnList = (token, options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getTxnList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
const withdraw = (options) => { //提币
  return new Promise((resolve, reject) => {
    axios.post(API['withdraw'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}

//获取提币记录
const getWithdraws = (token, options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getWithdraws'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 验证用户是否注册
const getRegisterUser = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getRegisterUser'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 划转 GCC
const transferAccounts = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['transferAccounts'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 划转 USDT
const transferAccountsUSDT = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['transferAccountsUSDT'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// GCC划转手续费
const getUSDTGcc = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['getUSDTGcc'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// USDT划转手续费
const getUSDTBrokerage = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['getUSDTBrokerage'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 划转记录
const getWdyTransferPoints = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['getWdyTransferPoints'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 划转详情
const wdyTransferPoints = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['wdyTransferPoints'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 入账详情
const wdyTransferPointsCover = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['wdyTransferPointsCover'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取入账记录
const getWdyTransferPointsReach = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['getWdyTransferPointsReach'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 摘取收益
const pickDailyProfit = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['pickDailyProfit'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取持币收益
const getDailyProfitList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getDailyProfitList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取释放记录
const getReleaseCoinPlanList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getReleaseCoinPlanList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取购买记录
const getBuyGccOrderList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getBuyGccOrderList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取理财记录
const getWdyUsdtOrderRecord = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getWdyUsdtOrderRecord'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 购买GCC
const buyVc = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['buyVc'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 购买理财产品
const getTransactions = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['getTransactions'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 净值
// const getWdyUsdtOrder = (options) => {
//   return new Promise((resolve, reject) => {
//     axios.post(API['getWdyUsdtOrder'], Qs.stringify(options), {
//         headers: {
//           'token': options.token
//         }
//       })
//       .then(response => {
//         resolve(response)
//       })
//       .catch(error => {})
//   })
// }
// 一键领取
const pickVcAll = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['pickVcAll'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 持仓购买列表
const getVcBuyOrderList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getVcBuyOrderList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取理财产品
const getWdyUsdtOrder = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getWdyUsdtOrder'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取vc记录
const getVcHistory = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getVcHistory'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取加速详情
const getReleaseDetail = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getReleaseDetail'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 活动详情
const getActivity = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getActivity'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 新手红包 
const getGiftPackList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getGiftPackList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 查看释放详情 
const getGiftPackReleaseList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getGiftPackReleaseList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取月直推记录
const getDirectRewardList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getDirectRewardList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取月团队记录 
const getTeamRewardList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getTeamRewardList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取转账验证码 
const getTransferCode = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getTransferCode'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 资产购买记录
const gccBuyOrder = (token, options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['gccBuyOrder'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取提现验证码 
const getWithdrawCode = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getWithdrawCode'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 资产充值记录
const getWdyEthTxn = (token, options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['getWdyEthTxn'], Qs.stringify(options), {
        headers: {
          'token': token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 活动列表
const activityList = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['activityList'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 理财产品列表
const financialList = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['financialList'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 活动详情
const activityEdit = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['activityEdit'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 理财产品详情
const financialEdit = (token, options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['financialEdit'], Qs.stringify(options), {
        headers: {
          'token': token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}

// 资讯列表
const wdyNoticeList = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['wdyNoticeList'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 资讯详情
const wdyNoticeEdit = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['wdyNoticeEdit'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })

}
// 资讯标题类型
const wdyNoticeType = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['wdyNoticeType'], Qs.stringify(options))
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 绑定邮箱
const bindEmail = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['bindEmail'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 划转
const transfer = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['transfer'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// cnn充值
const cnnRecharge = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['cnnRecharge'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// cnn订单查询
const getRechargeById = (options) => {
  return new Promise((resolve, reject) => {
      axios.get(API['getRechargeById'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// cnn买入卖出
const trade = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['trade'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}

// 撤销委托
const cancelTrade = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['cancelTrade'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}

// 充值 理财记录  13直推奖励,14团队奖励 
const getTxnHistorysByType = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getTxnHistorysByType'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取委托单
const getTradeList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getTradeList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}


// 获取banner
const getBanners = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getBanners'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 市场深度
const marketDepth = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['marketDepth'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 最新成交价
const newPrice = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['newPrice'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// k线图
const getKline = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getKline'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 最新成交记录
const getDealList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getDealList'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 委托交易明细
const getTradeRecordList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getTradeRecordList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      }).then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 历史委托记录
const getHistoryTradeList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getHistoryTradeList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'token': options.token
        }
      }).then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 理财信息
const getProduct = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getProduct'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}

// 基金详情
const getVcFundAsset = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getVcFundAsset'], {
        params: options,
        headers: {
          token: options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
//我的订单的资产划转
const getTransferList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getTransferList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          token: options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
//基金记录
const getVcFundAssetDailyProfitList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getVcFundAssetDailyProfitList'], {
        params: options,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          token: options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 火币接口
// 最近24小时行情数据
const huobiGet24HTrade = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['huobiGet24HTrade'], {
        params: options
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取委托记录
const huobiGetTradeList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['huobiGetTradeList'], {
        params: options,
        headers: {
          token: options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取委托详情
const getTradeById = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['getTradeById'], {
        params: options,
        headers: {
          token: options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 获取委托历史
const huobiHistoryList = (options) => {
  return new Promise((resolve, reject) => {
    axios.get(API['huobiHistoryList'], {
        params: options,
        headers: {
          token: options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 撤销委托
const huobiCancelTrade = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['huobiCancelTrade'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}
// 委托交易
const huobiTrade = (options) => {
  return new Promise((resolve, reject) => {
    axios.post(API['huobiTrade'], Qs.stringify(options), {
        headers: {
          'token': options.token
        }
      })
      .then(response => {
        resolve(response)
      })
      .catch(error => {})
  })
}

const apiUrl = API.apiUrl

export default {
  apiUrl: apiUrl,
  getTradeById,
  getUser,
  registerVCode,
  registerECode,
  register,
  certify,
  login,
  getTxnList,
  resetPwd,
  withdraw,
  getWithdraws,
  resetNewPwd,
  newPwdSmsCode,
  newPwdEmailCode,
  getConfig,
  getRegisterUser,
  transferAccounts,
  getUSDTGcc,
  getWdyTransferPoints,
  wdyTransferPoints,
  wdyTransferPointsCover,
  getWdyTransferPointsReach,
  getDailyProfitList,
  pickDailyProfit,
  getReleaseCoinPlanList,
  buyVc,
  getUSDTBrokerage,
  transferAccountsUSDT,
  getBuyGccOrderList,
  getTransactions,
  getWdyUsdtOrder,
  getWdyUsdtOrderRecord,
  getReleaseDetail,
  getActivity,
  getGiftPackList,
  getGiftPackReleaseList,
  getDirectRewardList,
  getTeamRewardList,
  getTransferCode,
  getWithdrawCode,
  gccBuyOrder,
  getWdyEthTxn,
  financialList,
  activityList,
  activityEdit,
  financialEdit,
  wdyNoticeList,
  wdyNoticeEdit,
  wdyNoticeType,
  getVcHistory,
  pickVcAll,
  getVcBuyOrderList,
  bindEmail,
  getTxnHistorysByType,
  marketDepth,
  newPrice,
  getTradeList,
  cancelTrade,
  getBanners,
  transfer,
  getKline,
  getDealList,
  trade,
  getTradeRecordList,
  getHistoryTradeList,
  getProduct,
  getVcFundAsset,
  getTransferList,
  getVcFundAssetDailyProfitList,
  huobiGet24HTrade,
  huobiGetTradeList,
  huobiCancelTrade,
  huobiTrade,
  huobiHistoryList,
  cnnRecharge,
  getRechargeById
}
